import PySimpleGUI as sg
layout = [
    [sg.Text('请输入您的信息：')],
    [sg.Text('姓名'),sg.InputText('李健奇')],
    [sg.Text('性别'),sg.InputText('男')],
    [sg.Text('民族'),sg.InputText('满')],
    [sg.Text('国籍'),sg.InputText('中国')],
    [sg.Button('确定'),sg.Button('取消')]
]
window = sg.Window('第一个界面',layout)
while True:
    event,values = window.read()
    if event == None:
        break
    # if event == '确定':
    #     sg.Popup('执行确定任务')
    # if event == '取消':
    #     sg.Popup('执行取消任务')
    if event in('确定','取消'):
        sg.Popup('执行了确定或取消任务')
window.close()